import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick .Controls 2.0

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Item {
        id :root
        anchors.fill: parent

        Rectangle {
            id: rect1
            anchors.left: parent.left
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            width: parent.width/3
            color: "red"
        }
        Rectangle {
            id: rect2
            anchors.left: rect1.right
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            width: parent.width/3
            color: "green"
        }
        Rectangle {
            id: rect3
            anchors.right: parent.right
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            width: parent.width/3
            color: "blue"
        }
    }
}
